package exception;

/**
 * 自定义异常
 *
 *
 * Illegal:非法的
 *
 * 定义自定义异常的几个要素
 * 1；类名见名知义
 * 2：继承自Exception（直接间接都可以）
 * 3：提供所有类型的构造器
 */
public class IllegalAgeException extends Exception{
    public IllegalAgeException() {
    }

    public IllegalAgeException(String message) {
        super(message);
    }

    public IllegalAgeException(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegalAgeException(Throwable cause) {
        super(cause);
    }

    public IllegalAgeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
